package demo2;

/**
 * @Author 12629
 * @Description：
 */
public class Dog extends Animal{

    public Dog(String name,int age) {
        super(name,age);
        System.out.println("Dog带2个参数的构造方法");
    }

    /*public Dog() {
        super();
    }*/

    public void bark() {
        System.out.println(name+"汪汪叫....");
    }

    public void wag() {
        System.out.println(name+"在摇尾巴...");
    }
}
